package cn.wsalix.biz.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.CommonRepository;
import cn.wsalix.biz.entity.Advertise;

public interface AdvertiseRepository extends CommonRepository<Advertise> {
	@Query("select u from Advertise u where u.code = :code")
	public Advertise findByCodeOne(@Param("code") String code);

	@Query("select u from Advertise u where u.code = :code")
	public List<Advertise> findsByCode(@Param("code") String code);

}
